<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script>

        //1.2,3,4,5
        // function show(...a){
        //     console.log(a);
        // }
        // show(1,2,3,4,5);

        // function show(){
        //     return Array.prototype.slice.call(arguments).sort();
        // }
        // console.log(show(10,-2,101,-4,50));

        function show(...a){
            return a.sort();
        }
        console.log(show(3,5,2,5,1,4));



    </script>
</head>
<body>
    
</body>
</html>